package cn.wolfcode.p2p.datasource;

import cn.wolfcode.p2p.util.DataSourceUtil;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class P2PMyDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceUtil.getDateSourceKey();
    }
}
